<!doctype html>
<html class="no-js" lang="">

<head>
  <title></title>
  <meta charset="utf-8">
  <script type="text/javascript" src="/js/dojo/dojo/dojo.js"></script>
</head>

<body>
  <script type="text/javascript">
    dojo.declare("Customer",null,{
      say:function(){
        alert("Hello Customer");
      },
      getDiscount:function(){
        alert("Discount in Customer");
      }
    });
    dojo.declare("MixinClass",null,{
      say:function(){
        alert("Hello mixin");
      },
      foo:function(){
        alert("foo in MixinClass");
      }
    });
    dojo.declare("VIP",[Customer,MixinClass],{
    });
    var vip = new VIP();
    vip.getDiscount();
    vip.foo();
    vip.say();//输出"Hello MixinClass"

  </script>
</body>
</html>
